#include<stdio.h>

int main()
{
    char x, y, z, a;
    while(scanf("%c%c%c", &x, &y, &z) != EOF)
    {
        getchar();//必须写，处理最后的回车符
        if(x > y)
        {
            a = x;
            x = y;
            y = a;
        }
        if(y > z)
        {
            a = y;
            y = z;
            z = a;
        }
        if(x > y)
        {
            a = x;
            x = y;
            y = a;
        }
        printf("%c %c %c\n", x, y, z);
    }
    return 0;
}